import useSWR from 'swr';
import { fetchGroup } from '@/service/group';

function useFetchGroupSwr(mid: number | undefined, gid: number | undefined) {
  return useSWR(['/group', mid, gid], fetchGroup);
}

export default useFetchGroupSwr;
